import request from '@/utils/request'
export function getCourseList(data){
    return request({
        url:'/course/list',
        method:'post',
        data
    })
}
//新增
export function addCourseList(data){
    return request({
        url:'/course/course_subject',
        method:'post',
        data
    })
}
//删除
export function delCourseList(data){
    return request({
        url:`/course`,
        method:'DELETE',
        data
    })
}
//id查询
export function getCourseDetails(id){
    return request({
        url:`/course/list/${id}`
    })
}
//修改
export function editCourseList(data){
    return request({
        url:'/course/update',
        method:'put',
        data
    })
}